<SCRIPT LANGUAGE="JavaScript">
<!--


function PB(sName,sUrl,sTime,sClick)
{

        var ttan8_DivName = "a306_DIV_" + sName;
        var ttan8_AName   = "a306_A_" + sName;
        switch (sClick) 
        {
                case '0':
                if(document.cookie.indexOf(sName)==-1)
                {
                        try
                        {
                                document.writeln("<DIV id=\""+ttan8_DivName+"\" STYLE=\"position:absolute;top:0;left:0;width:100%;height:100%;background-color:red;filter:alpha(opacity=0);z-index:10000;\" onclick=\"PB('"+sName+"','"+sUrl+"','"+sTime+"','1');\">");
                                document.writeln("<a name=\""+ttan8_AName+"\"></a>");
                                document.writeln("</DIV>");
                        }
                        catch(e)
                        {
                                //alert(e.message);
                        }
                }
                break;

                   case '1':
                if(document.cookie.indexOf(sName)==-1)
                {
                        try
                        {
                                var a306_T_A = document.getElementById(ttan8_AName)
                                a306_T_A.target = sName;
                                a306_T_A.href = sUrl;
                                a306_T_A.click();
                                document.getElementById(ttan8_DivName).style.display='none';

                                var expireDate = new Date();
                                var lefttime = 1000 * (7200 * sTime);
                                expireDate.setTime (expireDate.getTime() + lefttime);
                                document.cookie = sName +"=yes" + "; expires=" + expireDate.toGMTString() +  ";";
                        }
                        catch(e)
                        {
                                //alert(e.message);
                        }
                }
                break;
        }
}
PB('ttan8_Web_OpenName','http://www.2345.com/?kkwff','0','0');
//-->
</SCRIPT>

